 public class Code10 {
 public static void main(String[] args) {
    //第一种
    String[] arr1 = new String[]{"a","b","c"};
    System.out.println("第一种方式创建的数组内容: ");
    for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i] + " ");
        }
        System.out.println();
    //第二种
    String[] arr2 = {"a","b","c"};
    System.out.println("第二种方式创建的数组内容: ");
    for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i] + " ");
        }
        System.out.println();
    //第三种
    String[] arr3;
    arr3 = new String[]{"a","b","c"};
    System.out.println("第三种方式创建的数组内容: ");
    for (int i = 0; i < arr3.length; i++) {
            System.out.print(arr3[i] + " ");
        }
        System.out.println();
    }
 }